package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 商品属性
 * @TableName attr
 */
@TableName(value ="attr")
@Data
public class Attr implements Serializable {
    /**
     * 属性id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 属性名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 可选值列表[用逗号分隔]
     */
    @TableField(value = "value_select")
    private String valueSelect;

    /**
     * 启用状态[0 - 禁用，1 - 启用]
     */
    @TableField(value = "enable")
    private Long enable;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}